package com.dgac.publicresource.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class ShoppingCart {
    /**
     * 购物车id
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 单价
     */
    private Long price;

    /**
     * 购物车中某商品数量
     */
    private Long quantity;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
